//
//  SingleLabelCollectionCell.m
//  QuXiang
//
//  Created by Duncan on 2020/6/29.
//  Copyright © 2020 NanHuaiZi. All rights reserved.
//

#import "SingleLabelCollectionCell.h"

@implementation SingleLabelCollectionCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self.contentView addSubview:self.titleLabel];
        [self masonryLayout];
    }
    return self;
}

#pragma mark ------- Lazy Methods -------

- (void)masonryLayout {
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.left.right.equalTo(self.contentView);
    }];
}

- (UILabel *)titleLabel {
    if (!_titleLabel) {
        _titleLabel = [UILabel initWithTextColor:k_Color_TipColor fontSize:12];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
    }
    return _titleLabel;
}

@end
